<form method="POST">
    <h1>Novo Chamado</h1>
    <?php if (form_error('servico') != '' || form_error('descricao') != '') {?>
        <p class="error">Todos os campos s&atilde;o obrigat&oacute;rios!</p>
    <?php }?>
    <div class="dados-holder">
        <div class='right'>
            <div>
                <select name="servico" id="servico">
                    <option value="0">Selecione</option>
                    <?php foreach($servicos as $servico) { ?>
                    <option value="<?=$servico->getId()?>" <?=set_select('servico', $servico->getId());?> ><?=$servico->getTitulo()?></option>
                    <?php } ?>
                </select>
            </div>
            <div><textarea name="descricao" id="descricao" cols="40" rows="10"><?php echo set_value('descricao'); ?></textarea></div>
        </div>
        <div class='left'>
            <div><label for="servico">Servi&ccedil;o</label></div>
            <div><label for="descricao">Descri&ccedil;&atilde;o</label></div>
        </div>
    </div>
    <div style="text-align: right; padding-right: 2%; padding-top: 10px; clear: both;">
        <input type="submit" value="Criar" />
    </div>
</form>
